package com.doudou.feign;

/**
 * @Author: 傻男人
 * @Date: 2020/5/25 11:28
 * @Version: 1.0
 * @Description: 默认Hystrix失败处理工厂类
 */
public class DefaultHystrixFallbackHandlerFactory implements HystrixFallbackHandlerFactory {

    @Override
    public HystrixFallbackHandler createHandler(Class<?> feignClientClass, Throwable cause) {
        return new DefaultHystrixFallbackHandler(feignClientClass, cause);
    }

}
